<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>ID选择器</title>
    <style type="text/css">
        #id001{
            color: blue;
            font-size: 30px;
            border: 1px yellow solid;
        }
        #id002{
            color: red;
            font-size: 20px;
            border: 5px blue dotted;
        }
    </style>
</head>
<body>
<!--
    div id001  字体颜色为蓝色
               字体大小30像素
               边框为1像素黄色实线
    div id002  字体颜色红色
               字体大小20像素
               边框为5像素蓝色点线

-->
<div id="id001">div标签1</div>
<div id="id002">div标签2</div>
<span>span标签1</span>
<span>span标签1</span>
<p>p段落标签1</p>
<p>p段落标签2</p>

</body>
</html>